package Dream;



class MyArray<E>{
    public Object[] array = new Object[11];

    public E getArray(int pos) {
        return (E)array[pos];
    }

    public void setArray(int pos,E val) {
        this.array[pos] = val;
    }
}
public class down {
    public static void main(String[] args) {

        MyArray<Integer> array = new MyArray<>();
        array.setArray(0,10);
        array.setArray(1,5);
        int set = array.getArray(1);
        System.out.println(set);
    }
}
